package com.sc.nft.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.vo.ReportUserDayDetailsVO;
import com.sc.nft.entity.vo.ReportUserVO;
import lombok.extern.slf4j.Slf4j;
import com.sc.nft.entity.ReportUser;
import com.sc.nft.mapper.ReportUserMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Repository;

/**
 * (sc_report_user)数据DAO
 *
 * @author Sun
 * @since 2023-02-21 17:20:39
 * @description 由 Mybatisplus Code Generator 创建
 */
@Slf4j
@Repository
public class ReportUserDao extends ServiceImpl<ReportUserMapper, ReportUser> {

    public ReportUser getOneByYesterday() {
        return baseMapper.getOneByYesterday();
    }

    public ReportUserVO getReporUser() {
        return baseMapper.getReporUser();
    }

    public Page<ReportUserDayDetailsVO> getPageReporUser(Page page, String beginTime, String endTime) {
        return baseMapper.getPageReporUser(page,beginTime,endTime);
    }
}